if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sp_HIXPrescription]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[Sp_HIXPrescription]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[vw_HIXPrescriptionReport]'))
drop View [dbo].[vw_HIXPrescriptionReport]